<?php if (!defined('THINK_PATH')) exit();?>
    <div class="panel panel-info">
        <div class="panel-heading">
            照片 <a href="<?php echo U('Index/index');?>">返回</a>
        </div>
            <br/>
            <button class="btn btn-default" data-toggle="modal" data-target="#myModal4" id="pct" onclick="func()">添加照片</button>
        <div class="panel-body">
            <?php if(empty($data)): ?><div style="margin-top:150px;font-size:50px;margin-left:35%;height:200px;">没有照片</div>
            <?php else: ?>
                <?php if(is_array($data)): foreach($data as $key=>$val): ?><div class="col-xs-12 col-sm-6 col-md-4" >
                        <div class="thumbnail">
                            <img src="/Album<?php echo ($val['name']); ?>" alt="..." aid="<?php echo ($val['aid']); ?>">
                            <div class="caption">
                                <h3 style="font-family:宋体;"><?php echo ($val['addtime']); ?></h3>
                            </div>
                        </div>
                    </div><?php endforeach; endif; endif; ?>
        </div>
    </div>